package com.atguigu.tingshu.vo.order;

import com.atguigu.tingshu.common.util.Decimal2Serializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/**
 * 订单减免明细
 * @author sun
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class OrderDerateVo {
	/**
	 * 订单减免类型 1405-专辑折扣 1406-VIP服务折
	 */
	private String derateType;
	/**
	 * 减免金额
	 */
	@JsonSerialize(using = Decimal2Serializer.class)
	private BigDecimal derateAmount;
	/**
	 * 备注
	 */
	private String remarks;

}